//
//  oferta.m
//  chollos2
//
//  Created by Juan Soler Company on 13/04/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "oferta.h"



@implementation oferta

/*Getters and Setters*/

- init{
  
    /*Inicialitzacio de camps susceptibles a ser nuls*/
    idRestalo = -1;
    link = @"";
    descripcion = @"";
    
    return self;
}

-(int)idRestalo{
    return idRestalo;
}

-(void)setIdRestalo:(int)newIdRestalo{
    idRestalo = newIdRestalo;
}

-(float)lng{
    return lng;
}

-(void)setLng:(float)newLng{
    lng = newLng;
}

-(float)lat{
    return lat;
}

-(void)setLat:(float)newLat{
    lat = newLat;
}

-(NSString *)link{
    return link;
}

-(void)setLink:(NSString *)newLink{
    link = newLink;
}

-(int)idOferta{
    return idOferta;
}

-(void)setIdOferta:(int)newIdOferta{
    idOferta = newIdOferta;
}

-(NSString *)descripcion{
    return descripcion;
}

-(void)setDescripcion:(NSString *)newDescripcion{
    descripcion = newDescripcion;
}

-(float)distancia{
    return distancia;
}

-(void)setDistancia:(float)newDistancia{
    distancia = newDistancia;
}

-(NSString *)nom{
    return nom;
}

-(void)setNom:(NSString *)newNom{
    nom = newNom;
}

-(NSString *)source{
    return source;
}

-(void)setSource:(NSString *)newSource{
    source = newSource;
}

@end
